package com.elmcode.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.elmcode.common.utils.PageUtils;
import com.elmcode.server.dto.FoodDTO;
import com.elmcode.server.entity.FoodEntity;
import com.elmcode.server.exception.ParamsException;
import com.elmcode.server.vo.shopDetailVo;

import java.util.List;
import java.util.Map;

/**
 * 菜品
 *
 * @author laozj
 * @email laozj@elm.com
 * @date 2024-06-13 13:05:04
 */
public interface FoodService extends IService<FoodEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveFood(FoodDTO food);

    void updateStatus(Long id, String status) throws ParamsException;

    List<shopDetailVo> selectByCategoryId(Long id);

    void updateFoodInfo(Long id, FoodDTO food);
}

